<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>angular指令</title>
    <script src="../js/angular.min.js"></script>
</head>
<body>
<div ng-app=""  ng-init="firstName='John'">
    <p>在输入框中尝试输入：</p>
    <p>姓名：<input ng-model="lastName" > </p>
    <p>你的输入为:<span ng-bind="lastName"></span></p>
    <p>初始化值为：<sapn >{{firstName}}</sapn></p>
</div>
</body>
</html>